|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.hci.UserOperationModel
public class UserOperationModel
This Java class represents a user operation that has been processed and recorded by the SAP CC system; Your client application
can consult the operation results by implepement the handling of audits or by using the existing user interfaces to audit operations.
A user operation contains:
Notes
AuditModelThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="userOperation">
<xs:complexType>
<xs:attribute name="reference" type="xs:long"/>
<xs:attribute name="operationName" type="xs:string"/>
<xs:attribute name="operatorName" type="xs:string" />
<xs:attribute name="operandReference" type="xs:string" />
<xs:attribute name="message" type="xs:string" default=""/>
<xs:attribute name="recordingDate" type="xs:dateTime"/>
</xs:complexType>
</xs:element>
| Field Summary | |
|---|---|
static java.lang.String |
RESULT_MESSAGE
The result message for a successful operation: "__RESULT__MESSAGE__" |
| Constructor Summary | |
|---|---|
UserOperationModel()
Creates an uninitialized user operation. |
|
UserOperationModel(java.lang.String operationName,
java.lang.String operatorName,
java.lang.String operandReference,
java.util.Date recordingDate)
Creates a user operation for a successful execution (no error message is specified). |
|
UserOperationModel(java.lang.String operationName,
java.lang.String operatorName,
java.lang.String operandReference,
java.lang.String message,
java.util.Date recordingDate)
Creates a user operation for a failed execution (an error message is specified). |
|
| Method Summary | |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element. |
void |
addChild(java.lang.String tagname,
XMLMarshallable child)
Adds a child to the object, the child representing
the marshallable object which must be added to the element. |
java.lang.String |
getMessage()
Returns the message of the error. |
java.lang.String |
getOperandReference()
Returns the code or the reference (if no code exists) of the operand. |
java.lang.String |
getOperationName()
Returns the name of the operation executed. |
java.lang.String |
getOperatorName()
Returns the name of the operator (user login) which executed the operation. |
java.util.Date |
getRecordingDate()
Returns the date when the operation was recorded by the system. |
long |
getReference()
Returns the reference of the user operation (its unique identifier in the system). |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children. |
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being processed. |
void |
setMessage(java.lang.String message)
Sets the message of the error. |
void |
setOperandReference(java.lang.String operandReference)
Sets the code or the reference (if no code exists) of the operand. |
void |
setOperationName(java.lang.String operationName)
Sets the name of the operation executed. |
void |
setOperatorName(java.lang.String operatorName)
Sets the name of the operator (user login) which executed the operation. |
void |
setRecordingDate(java.util.Date recordingDate)
Sets the date when the operation was recorded by the system. |
void |
setReference(long reference)
Sets the reference of the user operation (its unique identifier in the system). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String RESULT_MESSAGE
| Constructor Detail |
|---|
public UserOperationModel()
public UserOperationModel(java.lang.String operationName,
java.lang.String operatorName,
java.lang.String operandReference,
java.util.Date recordingDate)
operationName - The name of the operation executedoperatorName - The name of the operator (user login) which executed the operationoperandReference - The code or the reference (if no code exists) of the operandrecordingDate - The date when the operation was recorded by the system
public UserOperationModel(java.lang.String operationName,
java.lang.String operatorName,
java.lang.String operandReference,
java.lang.String message,
java.util.Date recordingDate)
operationName - The name of the operation executedoperatorName - The name of the operator (user login) which executed the operationoperandReference - The code or the reference (if no code exists) of the operandmessage - The code or the reference (if no code exists) of the operandrecordingDate - The date when the operation was recorded by the system| Method Detail |
|---|
public java.lang.String getOperationName()
public void setOperationName(java.lang.String operationName)
operationName - The name of the operation executedpublic java.lang.String getOperatorName()
public void setOperatorName(java.lang.String operatorName)
operatorName - The name of the operator (user login) which executed the operationpublic java.lang.String getOperandReference()
public void setOperandReference(java.lang.String operandReference)
operandReference - The code or the reference (if no code exists) of the operandpublic java.lang.String getMessage()
public void setMessage(java.lang.String message)
message - The message of the errorpublic java.util.Date getRecordingDate()
public void setRecordingDate(java.util.Date recordingDate)
recordingDate - The date when the operation was recorded by the systempublic long getReference()
public void setReference(long reference)
reference - The reference of the user operation (its unique identifier in the system)
public void addChild(java.lang.String tagname,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.
addChild in interface XMLMarshallabletagname - The name of tag for the childchild - The child to be addedpublic void addCharacterData(java.lang.String cData)
XMLMarshallable
addCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void marshal(XMLOutputter output)
XMLMarshallable
marshal in interface XMLMarshallableoutput - The XML output to marshal the object into
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||